<?php

Raise::load('core.structure.RaiseTreeNode');

/**
 * TestCoreRaiseTreeNode class
 * Testing Unit of 'phpraise/core/RaiseTreeNod.php'
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest.Test
 */
class TestCoreRaiseTreeNode extends RaiseTest {

    public static function testClass(){
        self::assertClassExists('RaiseTreeNode');
        self::assertClassExtends('RaiseTreeNode', 'RaiseDataType');
        self::assertClassMethod('RaiseTreeNode', 'children');
    }

    public static function testCreate(){
        $node = new RaiseTreeNode();
        self::assertObjectClass($node, 'RaiseTreeNode');
        self::assertObjectClass($node->children(), 'RaiseCollection');
    }

}